<?php
#
# author: Phil Spagnolo
# (c)2008 South Hill Calvary Chapel
#

$linkList = array("current_sermons.php","sermon.php");
$textList = array("Current Sermons", "Archived Sermons");

function podcast($name, $img, $itunes, $rss) 
{
	printf("<h4>$name</h4>\n");
	printf("<div id='plainlist'>\n");
	printf("\t<ul>\n");
	printf("\t\t<li>\n");
	printf("\t\t\t<div class='paragraph'>\n");
	printf("\t\t\t\t<a href='%s' target='_blank'><img src='%s' alt='itunes' style='width:150px;'></a><br/>\n", $itunes, $img);
	printf("\t\t\t\t<a href='%s' target='_blank'>RSS Feed</a><br/>\n", $rss);
	printf("\t\t\t</div>\n");
	printf("\t\t</li>\n");
	printf("\t</ul>\n");
	printf("</div>\n");
}
include_once("./root.inc.php");
include_once("${root}/common.php");
print_html_head(null);
print_java_head(NULL);
begin_body();
printf("<style type='text/css'>#col li {width: 300px;}</style>\n");
page_title("Podcasts");
in_page_link(2, false, $linkList, $textList, "");
printf("<br/><table>\n");
printf("\t<tr>\n");
printf("\t<td>\n");
$name = 'Sunday Morning';
$img = '/images/podcast.jpg';
$itunes = 'https://itunes.apple.com/us/podcast/south-hill-calvary-chapel/id699179951';
$rss = '/podcast/generate.php?service=sunday';
podcast($name, $img, $itunes, $rss);
printf("\t</td>\n");
printf("\t<td>\n");
$name = 'Wednesday Evening';
$img = '/images/podcast.jpg';
$itunes = 'https://itunes.apple.com/us/podcast/south-hill-calvary-chapel/id699179952';
$rss = '/podcast/generate.php?service=wednesday';
podcast($name, $img, $itunes, $rss);
printf("</td>\n");
printf("</table>\n");
printf("<div class='clear'>&nbsp;</div>\n");
end_page_title();
end_body();
?>
